package com.example.framework509.codeGen.entity.middlePojp;

import java.util.List;

public class EntityContainer {

    private Integer id;

    private String entityName;

    private String modelName;

    private String mapperType;

    private String primaryModule;

    private String primaryEntity;

    private String secondaryModule;

    private String secondaryEntity;

    private List<FieldContainer> props;

    public EntityContainer(EntityInfo entityInfo, List<FieldContainer> props) {
        this.id = entityInfo.getId();
        this.entityName = entityInfo.getName();
        this.modelName = entityInfo.getModule();
        this.mapperType = entityInfo.getMapperType();
        this.primaryEntity = entityInfo.getPrimaryEntity();
        this.primaryModule = entityInfo.getPrimaryModule();
        this.secondaryEntity = entityInfo.getSecondaryEntity();
        this.secondaryModule = entityInfo.getSecondaryModule();
        this.props = props;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEntityName() {
        return entityName;
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getMapperType() {
        return mapperType;
    }

    public void setMapperType(String mapperType) {
        this.mapperType = mapperType;
    }

    public String getPrimaryModule() {
        return primaryModule;
    }

    public void setPrimaryModule(String primaryModule) {
        this.primaryModule = primaryModule;
    }

    public String getPrimaryEntity() {
        return primaryEntity;
    }

    public void setPrimaryEntity(String primaryEntity) {
        this.primaryEntity = primaryEntity;
    }

    public String getSecondaryModule() {
        return secondaryModule;
    }

    public void setSecondaryModule(String secondaryModule) {
        this.secondaryModule = secondaryModule;
    }

    public String getSecondaryEntity() {
        return secondaryEntity;
    }

    public void setSecondaryEntity(String secondaryEntity) {
        this.secondaryEntity = secondaryEntity;
    }

    public List<FieldContainer> getProps() {
        return props;
    }

    public void setProps(List<FieldContainer> props) {
        this.props = props;
    }

    @Override
    public String toString() {
        return "EntityContainer{" + "id=" + id + ", entityName='" + entityName + '\'' + ", modelName='" + modelName + '\'' + ", mapperType='" + mapperType + '\'' + ", primaryModule='" + primaryModule + '\'' + ", primaryEntity='" + primaryEntity + '\'' + ", secondaryModule='" + secondaryModule + '\'' + ", secondaryEntity='" + secondaryEntity + '\'' + ", props=" + props + '}';
    }
}
